package objects;

import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;


@Entity
@Table(name = "Forums")
public class Frm
{
	@Id
	private String forumName;
	@OneToMany(targetEntity=Trd.class, mappedBy="threadPk.forum", cascade=CascadeType.ALL)
	private List<Trd> threads;

	public String getForumName()
	{
		return forumName;
	}

	public void setForumName(String name)
	{
		this.forumName = name;
	}

	public List<Trd> getThreads()
	{
		return threads;
	}

	public void setThreads(List<Trd> threads)
	{
		this.threads = threads;
	}

	

}
